var ff = ff || {};
ff.vue = {};

function FFVue(obj) {
    obj = obj || {};
    obj.el = obj.el || "#ff_page";
    obj.data = obj.data || {};
    obj.data.obj = obj.data.obj || {};

    obj.data.page = obj.data.page || {pageSize:20,currentPage:1};
     
    var created = obj.created;
    var req = ff.page.req();
    if (null != req) {
        obj.data.obj = req;
    }

    obj.created = function () {
        try {

        } catch (e) {
            console.log("init page with lang failed");
        }


        if (null != created) {
            created(this);
        }

    }
    obj.methods = obj.methods || {};
    obj.methods.url = function (url) {

        return ff.util.img(url);
    }


    return new Vue(obj);
};
